package com.ruoyi.form.service;

import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.form.domain.AxModelField;
import com.ruoyi.form.domain.ResponseResult;
import org.bson.Document;

import java.util.List;
import java.util.Map;

public interface IAxFormDataService {
    /**
     * 获取列表配置项
     * @return List
     * @date 2025-06-06
     * @author lzf
     */
    public List<AxModelField> queryTableColumnList(String modelId);
    /**
     * 获取筛选项
     * @return List
     * @date 2025-06-06
     * @author lzf
     */
    public List<AxModelField>queryFilterColumnList(String modelId);
    /**
     * 根据过滤获取数据列表
     * @return List
     * @date 2025-06-06
     * @author lzf
     */
    public TableDataInfo searchDataList(Integer pageNum, Integer pageSize, Map<String, String> map);
    /**
     * 根据id删除数据
     * @return ResponseResult
     * @date 2025-06-06
     * @author lzf
     */
    public ResponseResult deleteKnowLedges(String[] ids);
    /**
     * 根据id查询数据详情
     * @return Document
     * @date 2025-06-06
     * @author lzf
     */
    Document getKnowLedgeInfo(String id);
    /**
     * 存储前端填报的表单
     * @date 2025-06-06
     * @author lzf
     * @return String id
     */
    String saveKnowLedgeData(Document doc,Boolean apiFlag);
}
